Skip to main content

💾 Create Storage

The Create Storage action allows you to create and manage storage in the browser's local or session storage to temporarily store user-specific data for the current session or persist it across sessions.


Features​

  • Select Storage Type: Choose the storage mechanism

    • Session Storage: Data lasts only for the duration of the page session (until the tab or browser is closed).
    • Local Storage: Data persists even after the browser is closed and reopened, until explicitly cleared.
  • Key / Value Management: Define one or multiple key-value pairs to store.

    • Add new key-value pairs using the + button.
    • Remove existing pairs with the trash/delete button.
  • User Interface: Simple form with dropdown and input fields for keys and values.


Use Cases​

  • Temporarily store user preferences during an active session without server-side storage.
  • Cache form data locally to prevent data loss on page refresh or navigation.
  • Persist login state or authentication tokens securely within the session scope.
  • Store UI state or feature flags that should reset when the session ends.

Example​

Suppose you want to save a user's theme preference temporarily for the current session:

  • Select Storage Type: Session
  • Key: theme
  • Value: dark

This will store the user's theme preference in session storage and automatically clear it once the browser tab is closed.


Notes​

  • Data stored in Local Storage or Session Storage is stored as strings.
  • Avoid storing sensitive information unless it is encrypted.
  • Storage limits vary by browser but are generally around 5MB per domain.

Tip: Use the Create Storage action in combination with other Pageflows steps to dynamically set and retrieve user data without the need for backend calls.